home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / GRAHAM / XA_6S.ZIP / SOURCE / SCRAP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-29  |  644 b   |  40 lines

  1. /*
  2.  * XaAES - XaAES Ain't the AES
  3.  *
  4.  * A multitasking AES replacement for MiNT
  5.  *
  6.  */
  7.  
  8. #include <strings.h>
  9. #include "XA_TYPES.H"
  10. #include "XA_DEFS.H"
  11. #include "XA_GLOBL.H"
  12. #include "K_DEFS.H"
  13.  
  14. /*
  15.     Scrap/clipboard directory stuff
  16. */
  17.  
  18. unsigned long XA_scrap_read(short clnt_pid, AESPB *pb)
  19. {
  20.     strcpy((char*)pb->addrin[0],scrap_path);
  21.     pb->intout[0]=1;
  22.     
  23.     return XAC_DONE;
  24. }
  25.  
  26. unsigned long XA_scrap_write(short clnt_pid, AESPB *pb)
  27. {
  28.     char *new_path=(char*)pb->addrin[0];
  29.     
  30.     if (strlen(new_path)<128)
  31.     {
  32.         strcpy(scrap_path,new_path);
  33.         pb->intout[0]=1;
  34.     }else{
  35.         pb->intout[0]=0;
  36.     }
  37.     
  38.     return XAC_DONE;
  39. }
  40.